<h3><%= t :dsnguoidung %></h3>
<% if notice %>
    <p id="notice"><%= notice %></p>
<% end %>
<table class="table table-striped">
  <tr>
    <h1><th><%= t :ho%></th></h1>
    <th></th>
    <h1><th><%= t :ten%> </th></h1>

    <th></th>
    <th></th>
  </tr>

  <% @users.each do |user| %>
      <tr>
        <td><%= user.firstName %></td>
        <th></td>
          <td><%= user.lastName %></td>
          <td><%= link_to "#{t :show}", user %></td>
          <% if((session[:user_id])!=nil) %>
              <% @user = User.find(session[:user_id]) %>
              <% if(@user.GroupUserId==10) %>
                  <td><%= link_to "#{t :edit}", edit_user_path(user) %></td>
                  <td><%= link_to "#{t :destroy}", user, confirm: 'Bạn có muốn xóa người dùng này?', method: :delete %></td>
              <%end%>
          <%end%>


          </tr>

  <% end %>
</table>
<br>
<h6><%= will_paginate @users, :previous_label => t("previous"), :next_label => t("next") %></h6>
<h6><%= link_to "#{t :themnguoidungmoi}", new_user_path %></h6>